import mobileLayout from '@/views/mobile/mobileLayout.vue'
import i18n from '@/lang'
const { t } = i18n.global;
export default [
  {
    path:'/mobile/login',
    name: t('message.mobileRouter.login'),
    component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/login.vue'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '/mobile',
    name: t('message.mobileRouter.mobileEnd'),
    component:mobileLayout,
    redirect:'/mobile/index',
    children:[
      {
        path: '/mobile/index',
        name: t('message.mobileRouter.mobileHome'),
        component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/home.vue'),
        meta: {
            keepAlive: true,
            isTab: false,
            isAuth: false
        }
      }, {
        path: '/mobile/knowledge',
        name: t('message.mobileRouter.library'),
        component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/knowledge.vue'),
        meta: {
            keepAlive: true,
            isTab: false,
            isAuth: false
        }
      },
      {
        path: '/mobile/collect',
        name: t('message.mobileRouter.collection'),
        component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/collect.vue'),
        meta: {
            keepAlive: true,
            isTab: false,
            isAuth: false
        }
      },
      {
        path: '/mobile/mine',
        name: t('message.mobileRouter.mine'),
        component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/mine.vue'),
        meta: {
            keepAlive: true,
            isTab: false,
            isAuth: false
        }
      }
    ]
  },
  {
    path:'/mobile/account',
    name: t('message.mobileRouter.accountSet'),
    component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/accountInfo.vue'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },{
    path:'/mobile/editusername',
    name: t('message.mobileRouter.changeNick'),
    component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/editUserName.vue'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },{
    path:'/mobile/editaccount',
    name: t('message.mobileRouter.changeAccount'),
    component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/editAccount.vue'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },{
    path:'/mobile/editpassword',
    name: t('message.mobileRouter.changePassword'),
    component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/editPassWord.vue'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path:'/mobile/switchtenant',
    name:t('message.mobileRouter.switchTenant'),
    component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/switchTenant.vue'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },{
    path:'/mobile/recyclebin',
    name:t('message.mobileRouter.recycle'),
    component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/recyclebin.vue'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },{
    path:'/mobile/search',
    name: t('message.mobileRouter.searchPage'),
    component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/mobileSearchPage.vue'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },{
    path:'/mobile/knowledgeinfo',
    name: t('message.mobileRouter.knowledgeBase'),
    component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/knowledgeInfo.vue'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path:'/mobile/movefile',
    name: t('message.mobileRouter.move'),
    component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/moveFile.vue'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },{
    path:'/mobile/qcode',
    name: t('message.mobileRouter.qecode'),
    component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/qCode.vue'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },{
    path:'/mobile/viewfile',
    name: t('message.mobileRouter.fileView'),
    component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/viewFile.vue'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },{
    path:'/mobile/share',
    name: t('message.mobileRouter.sharFileView'),
    component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/viewFile.vue'),
    children:[{
        path:'/mobile/share/:shareKey',
        name: t('message.mobileRouter.sharFielViewKey'),
        component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/viewFile.vue'),
        meta: {
          keepAlive: true,
          isTab: false,
          isAuth: false
        }
    }],
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },{
    path:'/mobile/detail',
    name: t('message.mobileRouter.oldShar'),
    component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/viewFile.vue'),
    children:[{
        path:'/mobile/detail/:shareKey',
        name: t('message.mobileRouter.oldSharKey'),
        component:()=>import(/* webpackChunkName:"mobile" */ '@/views/mobile/viewFile.vue'),
        meta: {
          keepAlive: true,
          isTab: false,
          isAuth: false
        }
    }],
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  }
]
